package com.ruoyi.common.imgconflate.jai;

import java.awt.*;
import java.io.File;
import java.util.UUID;

public class Test {
    public static void main(String[] args) {
        File bgImg = new File("D:\\img\\img\\ddd.png");

        TextConfig title = new TextConfig("微信昵称",
            "Arial", true, 24, Color.BLACK, 2, 1, 24, 144);


        QrCodeImageConfig qrCodeImgCfg = new QrCodeImageConfig("https://www.baidu.com", 100, 100,
            Color.WHITE, new File("/Users/Desktop/" + UUID.randomUUID() + "qrcode.png"));


        File outputFile = new File("D:\\img\\img\\abc.png");

        GenerateAttendanceImageUtil.createCompositeImage(bgImg, title, qrCodeImgCfg, outputFile);
    }
}
